<template>
  <Navbar />
  <div class="layout-content">
    <div class="side-container">
      <el-aside width="180px">
        <SideBar />
      </el-aside>
    </div>
    <div class="main-container">
      <router-view />
    </div>
  </div>
</template>
<script setup>
import Navbar from '@/components/NavBar/index.vue'
import SideBar from './components/SideBar/index.vue'
// const $Test2 = inject('$formatTime')
// const text = $Test2('hello 全局方法')
</script>

<style lang="scss" scoped>
.layout-content {
  margin-top: 64px;
  width: 100vw;
  height: 100vh;
  display: flex;
  .side-container {
    background-color: #545c64;
    height: 100%;
  }
  .main-container {
    flex: 1;
    padding: 10px;
  }
}
</style>
